#define _CRT_SECURE_NO_WARNINGS 1
#include<stdio.h>
#include<string.h>
#include<stdbool.h>
bool digitCount(char* num) {
    int n = strlen(num);
    int arr[10];
    for (int i = 0; i < 10; i++)
    {
        arr[i] = 0;
    }
    for (int i = 0; i < n; i++)
    {
        arr[num[i] - '0']++;
    }
    int tmp = 0;
    for (int j = 0; j < n; j++)
    {
        if (num[j] - '0' == arr[j])
            tmp = 1;
    }
    if (tmp == 1)
        return true;
    else
        return false;
}
int main()
{
    char arr[5] = { "030" };
    if (digitCount(arr) != 1)
        printf("true");
    else
        printf("false");
    return 0;
}